package models;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import utils.dict.Element;

/**
 * 自动回复关键字关系模型
 * 
 * @author ultrafrog
 * @version 1.0, 2014-12-17
 * @since 1.0
 */
@Entity
@Table(name = "uwx_reply_keyword")
public class ReplyKeyword extends Model {

	/** 关键字 */
	@Column(name = "vc_keyword")
	public String keyword;
	
	/** 类型 */
	@Column(name = "dc_type")
	public String type;
	
	/** 自动回复 */
	@Column(name = "fk_reply")
	public String reply;
	
	/**
	 * 类型
	 * 
	 * @author ultrafrog
	 * @version 1.0, 2014-12-17
	 * @since 1.0
	 */
	public static class Type {
		
		@Element("全匹配")
		public static final String PERFECT_MATCHING	= "00";
		
		@Element("部分匹配")
		public static final String PARTIAL_MATCHING	= "01";
		
		@Element("默认")
		public static final String DEFAULT_MATCHING	= "99";
	}
}
